package com.accelstack.cmp.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Tag(name = "Hello", description = "示例接口")
public class HelloController {

    @GetMapping("/api/hello")
    @Operation(summary = "获取问候信息", description = "返回 OpenStack Agent 的问候信息")
    @ApiResponses(value = {
            @ApiResponse(responseCode = "200", description = "成功获取问候信息")
    })
    public String hello() {
        return "Hello, OpenStack Agent";
    }
}


